package com.telit.firecommand.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 行政区划查询视图类
 */
@Data
@ApiModel(value = "行政区划查询视图", description = "行政区划查询视图")
public class DistrictInfoVo {

    @ApiModelProperty(value = "行政区划名称")
    private String name;

    @ApiModelProperty(value = "行政区划编码")
    private String code;

    @ApiModelProperty(value = "上级行政区划编码")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String parentCode;

    @ApiModelProperty(value = "行政区划级别")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer rank;

    @ApiModelProperty(value = "行政区划下的用户数量")
    private Integer userCount;
}
